// 多变量赋值   解构赋值
let [a,b,c]=[1,2,3]

let [foo, [bar, [baz]]] = [1,[2,[3]]]
console.log(bar)

let [ , ,d] = [1,2,3]

// ...用来接受剩余所有值,即h为一个数值
let [i = 'hello',e,f,g,...h] = [1,2,3,4,5,6]
console.log(i)



